﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace Guesshoo.TrainExpress.Extensions
{
	public static class QuickGraphExtensions
	{
		public static int TotalTravelTime(this IEnumerable<StationLink> pSource,
		                                  Func<StationLink, int>
		                                  	funDetermineCost) {
			return pSource.Sum(funDetermineCost);
		}
	}
}